<#list files as file>
	<#assign name = file.name>
	<#assign path = parent + "/" + name>
	<#if file.directory><div class="dir-box"><#else><div class="file-box"></#if>
		|--${name} 
		<#if file.directory> 
			<a href="javascript:;" class="delete" file="${path}" isdir="true">删除</a>
			<a href="javascript:;" class="unfold" dir="${path}" action="unfold">展开</a>
			<a href="javascript:;" class="add" dir="${path}">增加文件(夹)</a>
			<div class="child-box"></div>
		<#else>
			<a href="javascript:;" class="delete" file="${path}">删除</a>
		</#if> 
	</div>
</#list>
